package com.shilei.spring.v2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description: spring 工厂
 * @author: 81271
 * @date: 2020-04-13 21:04
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("app_auto.xml");

        Tank tank =  (Tank) ac.getBean("tank");
        tank.run();
    }
}
